<template>
  <div>
    <h3>$route</h3>
    <ul>
      <li v-for="(value, key) in routerInfo" :key="key">
        {{ key }}：{{ value }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  computed: {
    routerInfo() {
      const { fullPath, path, name, params, query, meta } = this.$route;
      return { fullPath, path, name, params, query, meta };
    },
  },
};
</script>

<style></style>
